home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
El Mac 9
/
El Mac 9.iso
/
Shareware
/
Applications
/
MathPad 2.4
/
XFuns
/
readsnd
/
readsnd.rsrc
/
TEXT_130_playsnd().txt
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-04-15
|
428 b
|
10 lines
----- playsnd(samples,rate)
-- Play the array "samples" through the sound synthesizer. Sample values must range from 0 to 255. The sample rate is specified in Hz and can be up to 64KHz.
-- (To try this example, option drag the "Wild Eep" sound from your system suitcase).
rate:=readsnd("Wild Eep"):; rate:11127.2727
playsnd(samples,rate/3):
playsnd(samples,rate/2):
playsnd(samples,rate):
playsnd(samples,rate*1.3):